@import 'reset-css/reset.css';
@import './fonts.css';
@import './vars.css';

*:focus {
  outline: none;
}

button {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

body {
  background: #666;
  font-family: 'IntelClear_Rg', sans-serif;
  background: url('assets/img/city-bg.jpg');
  background-size: cover;
  background-position: 0 40%;
}

@-moz-document url-prefix() {
  body {
    background-position: 0 10%;
  }
}

.no-aws {
  position: absolute;
  background: white;
  width: 600px;
  height: 60px;
  text-align: center;
  left: 50%;
  margin-left: -250px;
  top: 300px;
  box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.3);
  cursor: pointer;

  & p {
    color: var(--dark-blue);
    font-size: 1.2rem;
    padding: 20px;
    cursor: pointer;
  }
}

.sidebar {
  position: absolute;
  width: 182px;
  height: 100%;
  text-align: left;

  & .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0.5;
  }

  & .menu {
    list-style: none;
    position: relative;
    margin-top: 16px;
  }

  & button {
    padding: 5px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    margin-bottom: 10px;
    background-color: #fff;
    color: #0071C5;
    text-align: left;
    border-radius: 0;
    cursor: pointer;
    width: 100%;
    display: block;

    & .menu-icon {
      display: inline-block;
      margin-right: 12px;
      float: left;
      width: 20px;
      height: 20px;
      background-size: 20px 20px;
      margin-top: 2px;
    }

    & .home {
      background-image: url('assets/img/icon-home.svg');
    }
    & .about {
      background-image: url('assets/img/icon-about.svg');
    }
    & .setup {
      background-image: url('assets/img/icon-setup.svg');
    }
    & .log {
      background-image: url('assets/img/icon-log.svg');
    }
  }

  & .cloud {
    background-image: url('assets/img/icon-cloud.svg');
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;

    &.off {
      background-image: url('assets/img/icon-cloud-off.svg');
    }
  }
}

.sensors {
  overflow: auto;
  position: absolute;
  left: 210px;
  top: 40px;
  height: 500px;
}

.sensor-holder {
  float: left;
  width: 170px;
  height: 170px;
  margin-left: 20px;
}



@media (min-width: 1180px) {
  .sidebar {
    width: 228px;

    & .bg {
      width: 228px;
    }

    & button {
      width: 228px;
      font-size: 27px;
      height: 48px;
      line-height: 48px;
      padding: 0 16px;

      & .menu-icon {
        margin-top: 14px;
      }
    }

    & .cloud {
      top: 14px;
    }
  }

  .sensors {
    left: 250px;
  }

  .sensor-holder {
    width: 210px;
    height: 210px;
  }
}